package com.example.redisdemo.accessLimit.exception;

/**
 * @Description     自定义一个错误进行捕捉返回
 * @ClassName ServiceException
 * @Author jiang_11445266119198
 * @Date 2022/7/18 16:10
 */
public class ServiceException extends RuntimeException{

    private String code;
    private String msg;

    public ServiceException() {
    }

    public ServiceException(String msg) {
        this.msg = msg;
    }

    public ServiceException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
